home *** CD-ROM | disk | FTP | other *** search
- signal.gotoAndStop("comp");
- messages.gotoAndStop(1);
- computerScore = 0;
- playerScore = 0;
- var i = 0;
- while(i < 8)
- {
- j = 0;
- while(j < 8)
- {
- if(chessBoard[i][j] != VOID)
- {
- if((chessBoard[i][j] & 1) == SIDE_COMPUTER)
- {
- computerScore += chessBoard[i][j] >> 1;
- playerScore -= chessBoard[i][j] >> 1;
- }
- else if((chessBoard[i][j] & 1) == SIDE_PLAYER)
- {
- computerScore -= chessBoard[i][j] >> 1;
- playerScore += chessBoard[i][j] >> 1;
- }
- }
- j++;
- }
- i++;
- }
-